package top.infopub.mgr.bpa.service;


import com.github.pagehelper.Page;
import top.infopub.generic.GenericService;
import top.infopub.mgr.bpa.domain.CotBackupDomain;
import top.infopub.mgr.bpa.vo.CotBackupVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.bpa.BpaCotBackup;
import top.infopub.model.bpa.CotBackup;
import top.infopub.model.mkt.ProjectAttachment;
import top.infopub.security.vo.AuthorizationVO;

import java.text.ParseException;
import java.util.List;


public interface CotBackupService extends GenericService<BpaCotBackup, String> {

    /**
     * 根据条件查询分页数据
     * @param page
     * @param cotBackupVo
     * @return
     * @see
     */
    Page<CotBackupDomain> selectPageByDomainWhere(Page<CotBackupDomain> page,
                                                  CotBackupVo cotBackupVo) throws ParseException;

    CotBackup queryById(String id);

    RspVo saveAll(CotBackup cotBackup, List<ProjectAttachment> attachmentList, String bodyStr, AuthorizationVO userDtl, Integer submitType);

    CotBackup selectBySguid(String id);
}
